import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpModule } from '@angular/http';
import { FormsModule } from '@angular/forms';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HttpClientModule } from '@angular/common/http';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { LocationStrategy, HashLocationStrategy, registerLocaleData } from '@angular/common';

// service
import { UtilService } from './my-service/util.service';
import { MyPacketService } from './my-service/mypacket.service';
import {TeamManagerService} from "./my-service/teamManager.service";
//公共组件
import { NavComponent } from './nav/nav.component';
import { breadcrumbComponent } from './my-public/breadcrumb/breadcrumb.component';
import { HomeComponent } from './home/home.component';
//组件
import { StartComponent } from './home/start/start.component'; //团队管理首页
import { AddAccreditComponent } from "./home/add-accredit/add-accredit.component";//添加授权
import {AdminSettingComponent} from "./home/admin-setting/admin-setting.component"; // 管理员设置
import {TeamStartComponent} from "./home/team-minute/team-start/team-start.component"; //团队管理详情页
import {TeamNavComponent} from "./home/team-minute/team-nav/team-nav.component"; //团队管理详情首页导航
import {TeamPackageComponent} from "./home/team-minute/team-package/team-package.component";//团队教案包
import {ModifyDuplicateComponent} from "./home/modify-duplicate/modify-duplicate.component"; //修改教案包副本
// UI
import { NgZorroAntdModule, NZ_MESSAGE_CONFIG } from 'ng-zorro-antd';
//管道
import { ToHTMLPipe} from "./my-pipe/to-html.pipe";
import {ToDatePipe} from "./my-pipe/to-date.pipe"; //将时间戳转换为日期格式的管道

@NgModule({
  declarations: [
    AppComponent,
    NavComponent,
    HomeComponent,
    StartComponent,
    breadcrumbComponent,
    AddAccreditComponent,
    AdminSettingComponent,
    TeamStartComponent,
    TeamNavComponent,
    TeamPackageComponent,
    ModifyDuplicateComponent,
    //管道
    ToHTMLPipe,
    ToDatePipe

  ],
  imports: [
    AppRoutingModule,
    HttpClientModule,
    BrowserModule,
    FormsModule,
    BrowserAnimationsModule,
    NgZorroAntdModule,
    HttpModule
  ],
  providers: [
    UtilService,
    MyPacketService,
    TeamManagerService,
  ],
  bootstrap: [AppComponent]
})
export class AppModule { }
